package com.yxcz.service;

import java.util.ArrayList;
import java.util.Stack;

import com.yxcz.exception.FormsAuthenticationFailureException;
import com.yxcz.model.AddMenuForm;
import com.yxcz.model.JsonMenu;
import com.yxcz.model.Menu;
import com.yxcz.model.UpdateMenuForm;

public interface MenuService {
	
	/**
	 * 管理权限菜单服务
	 * @throws FormsAuthenticationFailureException 
	 * 
	 */
	public ArrayList<Menu> getMenuTree(int uid);

	public Stack<Menu> getRouter(String servletPath);

	ArrayList<JsonMenu> list();
	
	boolean setMenu(int rid, Integer[] menu_list);
	
	Menu find(int id);

	public void update(UpdateMenuForm form);

	public void delete(Integer id);

	public boolean add(AddMenuForm form);

}
